<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>

<bean:define id="role" value="${auth.role.roleType}" scope="session" />
<logic:equal name="role" value="dispatcher">
<html:form action="/updateEmployeeAction">
	<html:hidden property="employeeId" value="${employee.id}" />
	<h1>
		<bean:message key="employee.title.update" />
	</h1>
	<bean:message key="employee.name" />
	<html:text property="name" value="${employee.name}"></html:text>
	<br />
	<bean:message key="employee.surname" />
	<html:text property="surname" value="${employee.surname}"></html:text>
	<br />
	<bean:message key="employee.chooseSpeciality" />
	<html:select property="specialityId"
		value="${employee.speciality.specialityId}"
		title="Available speciality">

		<html:options collection="specialities" property="specialityId"
			labelProperty="specialityName" />
	</html:select>
	<br />
	<html:submit>
		<bean:message key="employee.update" />
	</html:submit>
	<html:reset>
	<bean:message key="reset" />
	</html:reset>
</html:form>
</logic:equal>
